<!--{Atemplate public/tpl/header}-->
<script src="{Acan_path_js}/plugin/My97DatePicker/WdatePicker.js"></script>
<script src="{Acan_path_plugin}/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" charset="utf-8">
function kh_chk(id){
	var obj = jQuery('input[value="'+id+'"]');
	if(obj.attr('checked')=='checked'){
		obj.removeAttr('checked');
	}else{
		obj.attr('checked','checked');
	}
}
function kind_edit(){
	KindEditor.create('#note_edit');
	;
}
var columns = {"$this->model->table":$column_json};
var Aform = new Apps.form('news','Aform',{'add':{width:900,height:'auto'}},columns.$this->model->table,{info:'$this->Amodr-info-',save:'$this->Amodr-save-one'});
</script>
<div class="_l">
	<table class="-table">
		<tr>
			<th style="width:40px">#</th>
			<th style="">标题</th>
			<th style="width:160px">时间</th>
			<th style="width:80px">状态</th>
			<th style="width:80px">发布人</th>
			<th style="width:80px">操作</th>
		</tr>
		<!--{eval $i=0;}-->
		<!--{loop $list $key $val}-->
		<!--{eval $i++;}-->
		<tr class="_$val[id]" onclick="kh_chk($val[id])">
			<td><input type="checkbox" name="exp[]" onclick='kh_chk($val[id])' value="$val[id]"/>$i</td>
			<td><a href="/$this->Amodr-show-$val[id]" target="_blank">$val[title]</a></td>
			<td>$val[update]</td>
			<td>$val[status]</td>
			<td>$val[username]</td>
			<td><button onclick="Aform.add($val[id],'编辑','_add')">编辑</button></td>
		</tr>
		<!--{/loop}-->
	</table>
</div>
<!--{Atemplate public/tpl/footer}-->